<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	body{
		width:auto;
		height: auto;
		background-image: url("img/beijin.jpg");
		background-repeat:no-repeat;
		background-size: 100%;
	}

	.sss{
		width: 1200px;
		margin: 20px auto;
		padding-bottom: 25px;
		padding-left: 10px;
		padding-right: 10px;
		min-height:120px;
	}
	
	td,th{
		
		padding: 7px 7px;
	
	}
	
	table{
			width:100%;
            border-collapse: collapse;
            margin: 0 auto;
            text-align: center;
            border-bottom-color:#666;
        }
    table td, table th{
            border: 1px solid #cad9ea;
            color: #666;
            height: 30px;
            max-width: 200px;
        }
    table thead th{
            background-color: #CCE8EB;
            width: 100px;
        }
    table tr:nth-child(odd){
            background: #fff;
   	 }
    
    table tr:nth-child(even)
        {
            background: #F5FAFA;
        }
	
	h3{
		text-align: center;
	}
	
	button{
		margin-top:5px;
		float:right;
		padding: 5px 10px;
		margin-bottom: 5px
		}
	
</style>
<script type="text/javascript">

	function fh(){
		window.location="grade?method=xsfh";
	}
</script>
</head>
<body>
<div class="sss">
	<h3>班级成绩</h3>
	<table border="1">
	<thead>
		<tr>
			<th>学号</th>
			<th>姓名</th>
			<c:forEach items="${kcs}" var="kc">
				<th>${kc.name}</th>
			</c:forEach>
			<th>总分</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${cjb}" var="row">
			<tr>
				<c:forEach items="${row}" var="r">
					<td>${r}</td>
				</c:forEach>
			</tr>
		</c:forEach>
	</tbody>
</table>
</div>
</body>
</html>